<template>
	<view>
		<TopNavCustom title="提交审核"></TopNavCustom>
		<view class="content">
			<view class="process-bar">
				<text class="time">{{time}}</text>
				<u-steps current="3" activeColor="#ee0013" class="steps">
					<u-steps-item title="进度情况">
					</u-steps-item>
					<u-steps-item title="质量情况">
					</u-steps-item>
					<u-steps-item title="安全情况">
					</u-steps-item>
					<u-steps-item title="提交审批">
					</u-steps-item>
				</u-steps>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				time: uni.$u.timeFormat(false, 'yyyy-mm-dd'),
			};
		},
		onReady() {
			uni.$showMsg("提交成功", "success");
			uni.$u.sleep(1000).then(() => {
				uni.switchTab({
					url: "/pages/ihome/home/home",
				});
			});
		},
	};
</script>

<style lang="scss">
	.content {
		padding: 20rpx 30rpx 58rpx 30rpx;

		.process-bar {
			border: 1rpx solid #efefef;
			border-radius: 20rpx;
			background-color: #FFFFFF;
			padding: 30rpx;
			margin-bottom: 20rpx;

			.steps {
				margin-top: 45rpx;
			}
		}
	}
</style>
